package com.ruoyi.hr.service.impl.empinfo;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.empinfo.BackGroundInfoMapper;
import com.ruoyi.hr.mapper.empinfo.IncumbencyEmpMapper;
import com.ruoyi.hr.service.empinfo.BackGroundInfoService;
import com.ruoyi.hr.service.empinfo.IncumbencyEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BackGroundInfoServiceImpl implements BackGroundInfoService {

    @Autowired
    BackGroundInfoMapper backGroundInfoMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public Map<String, Object> findPersonalInfo(String eid) {
        return backGroundInfoMapper.findPersonalInfo(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getEducationList(String eid) {
        return backGroundInfoMapper.getEducationList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getWorkList(String eid) {
        return backGroundInfoMapper.getWorkList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getTitleList(String eid) {
        return backGroundInfoMapper.getTitleList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getTrainingList(String eid) {
        return backGroundInfoMapper.getTrainingList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getProjectList(String eid) {
        return backGroundInfoMapper.getProjectList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getHortationList(String eid) {
        return backGroundInfoMapper.getHortationList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getFamilyList(String eid) {
        return backGroundInfoMapper.getFamilyList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getEmergencyList(String eid) {
        return backGroundInfoMapper.getEmergencyList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getLanguageList(String eid) {
        return backGroundInfoMapper.getLanguageList(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getCertificateList(String eid) {
        return backGroundInfoMapper.getCertificateList(eid);
    }
}
